package com.ff.xyh;

import com.ff.xyh.common.servicebase.config.MybatisPlusConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @Auther FF
 * @Date 2022年 11月 08日
 * @Time 01:10
 */

@EnableDiscoveryClient
@EnableFeignClients(
        basePackages = {
                "com.ff.xyh.feign.client.post",
                "com.ff.xyh.feign.client.userfront",
                "com.ff.xyh.feign.client.message",
                "com.ff.xyh.feign.client.minio"
        }
)
@SpringBootApplication(
        exclude = {
            SecurityAutoConfiguration.class,
            DataSourceAutoConfiguration.class
        }
)
// 启动时排除一些配置类
@ComponentScan(excludeFilters = @ComponentScan.Filter(
        type = FilterType.ASSIGNABLE_TYPE,
        classes = {
                MybatisPlusConfig.class
        }))
public class Consumer_8010_ChatRoomApplication {

    public static void main(String[] args) {

        SpringApplication.run(Consumer_8010_ChatRoomApplication.class, args);
    }

}
